package cn.wizzer.app.sys.modules.models;

import cn.wizzer.framework.base.model.BaseModel;
import lombok.Data;
import org.nutz.dao.entity.annotation.*;
import org.nutz.dao.interceptor.annotation.PrevInsert;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 第三方的  http://ip-api.com/json/218.85.35.105
 */
@Table("sys_ip_api")
@Data
public class SysIpApi  extends BaseModel implements Serializable {

    private static final long serialVersionUID = 1L;

    @Column
    @Name
    @ColDefine(type = ColType.VARCHAR, width = 32)
    @PrevInsert(els = {@EL("uuid()")})
    private String id;

    @Column
    @ColDefine(type = ColType.VARCHAR, width = 32)
    private String status;

    @Column
    @ColDefine(type = ColType.VARCHAR, width = 32)
    private String country;

    @Column
    @ColDefine(type = ColType.VARCHAR, width = 32)
    private String countryCode;

    @Column
    @ColDefine(type = ColType.VARCHAR, width = 32)
    private String region;

    @Column
    @ColDefine(type = ColType.VARCHAR, width = 32)
    private String city;

    @Column
    @ColDefine(type = ColType.VARCHAR, width = 32)
    private String zip;

    @Column
    @ColDefine(type = ColType.VARCHAR, width = 32)
    private String lat;

    @Column
    @ColDefine(type = ColType.VARCHAR, width = 32)
    private String lon;

    @Column
    @ColDefine(type = ColType.VARCHAR, width = 32)
    private String timezone;

    @Column
    @ColDefine(type = ColType.VARCHAR, width = 32)
    private String isp;

    @Column
    @ColDefine(type = ColType.VARCHAR, width = 32)
    private String org;

    @Column
    @ColDefine(type = ColType.VARCHAR, width = 32)
    private String query;
}
